import request from "@/utils/request";

// 获取班级平时分列表
export function getAListOfClassPoints(courseSchedulingId,params) {
  return request({
    url: "/school/teacher/usuallyPoints/courseClassNormal/"+courseSchedulingId,
    method: "get",
    params: params,
  });
}
// 获取班级平时分
export function getClassNormal(courseSchedulingId,params) {
  return request({
    url: `/school/teacher/usuallyPoints/classNormal/${courseSchedulingId}`,
    method: "get",
    params: params,
  });
}
// 获取学生平时分详情列表
export function getcourseStuNormalBase(courseStuId,params) {
  return request({
    url: `/school/teacher/usuallyPoints/courseStuNormalBase/${courseStuId}`,
    method: "get",
    params: params,
  });
}
//平时分新增打分
export function addcourseStuNormal(data) {
  return request({
    url: `/school/teacher/usuallyPoints/courseStuNormal`,
    method: "post",
    data: data,
  });
}
// 平时分修改
export function editcourseStuNormal(data) {
  return request({
    url: `/school/teacher/usuallyPoints`,
    method: "put",
    data: data,
  });
}
// 平时分删除
export function deletecourseStuNormal(id) {
  return request({
    url: `/school/teacher/usuallyPoints/${id}`,
    method: "delete",
  });
}
